﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PHPDecoder;

namespace CodeVisual
{
    public partial class Output
    {
        Dictionary<String, ClassNode>.ValueCollection clss;
        List<FunctionNode> funcs;
        List<VariableNode> vars;

        public Output(String s)
        {
            InitializeComponent();
            Random rnd = new Random();
            name.Text = s;
            this.Left = rnd.Next(586 - this.Width);
            this.Top = rnd.Next(355 - this.Height);
            Init();
        }
        
        public Output(AnalyseResult res, String s)
        {
            InitializeComponent(); 
            Random rnd = new Random();
            name.Text = s;
            this.Left = rnd.Next(586 - this.Width);
            this.Top = rnd.Next(355 - this.Height);
            clss = res.getAllClasses();
        }

        void Init()
        {
            funcs = new List<FunctionNode>();
            vars = new List<VariableNode>();
        }

        void AddClassNode(ClassNode node)
        {
        }

        void AddFunctionNode(FunctionNode node)
        {
            funcs.Add(node);
        }

        void AddVariableNode(VariableNode node)
        {
            vars.Add(node);
        }
    }
}